home *** CD-ROM | disk | FTP | other *** search
- #
- # Mask.cs
-
- if test $2 == Init
- set KQWorld::SaveGameName Game1Save
-
- # Load data files
- loadKQ bounds.kq
- loadKQ invinfo.itl
- loadKQ monstats.mtl
-
- # Pop up the GUI screen
- KQGame::selectScreen 0
-
- lockResource black.ppl
- lockResource Menus.ppl
-
- else if test $2 == NewWorld
-
- # names of the world's resource volumes
- setcat KQWorld::VolumeSound $KQWorld::Parent / Sound
- setcat KQWorld::VolumeKq $KQWorld::Name / Kq
- setcat KQWorld::VolumeBMP $KQWorld::Name / $KQGame::BitDepth Bit
- setcat KQWorld::VolumeText $KQWorld::Parent / $KQGame::Language
- setcat KQWorld::VolumeArt $KQWorld::Name / Resource
- setcat KQWorld::VolumeGui $KQWorld::Name / $KQGame::BitDepth Gui
- setcat KQWorld::VolumePatch $KQWorld::Name / Patch
-
- loadVolume KQWorld::VolumeSound $KQWorld::VolumeSound
- loadVolume KQWorld::VolumeKq $KQWorld::VolumeKq
- loadVolume KQWorld::VolumeBMP $KQWorld::VolumeBMP
- loadVolume KQWorld::VolumeText $KQWorld::VolumeText
- loadVolume KQWorld::VolumeArt $KQWorld::VolumeArt
- loadVolume KQWorld::VolumeGui $KQWorld::VolumeGui
- loadVolume KQWorld::VolumePatch $KQWorld::VolumePatch
-
- KQGame::moveVolToFront cur
-
- # create the world
- world.cs $KQWorld::Name Init
-
- # load the objects
- world.cs $KQWorld::Name Load
-
- # Show the Game screen (moved to world.cs [10-13 abc])
- #KQGame::selectScreen 1
- loadPalettes 0
-
- purgeResource 4black.pbm
- purgeResource 4red.pbm
- purgeResource 4green.pbm
- purgeResource 4blue.pbm
- purgeResource Loading.pbm
- purgeResource loading.ppl
-
- lockResource 4black.pbm
- lockResource 4red.pbm
- lockResource 4green.pbm
- lockResource 4blue.pbm
- lockResource stontran.pbm
-
- else if test $2 == RestoreWorld
-
- echo Restore world $KQWorld::Name game $KQWorld::SaveGameName
-
- # VolumeSavedWorld is used for going through portals.
-
- # names of the world's resource volumes
- setcat KQWorld::VolumeSound $KQWorld::Parent / Sound
- setcat KQWorld::VolumeKq $KQWorld::Name / Kq
- setcat KQWorld::VolumeBMP $KQWorld::Name / $KQGame::BitDepth Bit
- setcat KQWorld::VolumeText $KQWorld::Parent / $KQGame::Language
- setcat KQWorld::VolumeArt $KQWorld::Name / Resource
- setcat KQWorld::VolumeGui $KQWorld::Name / $KQGame::BitDepth Gui
- setcat KQWorld::VolumePatch $KQWorld::Name / Patch
- setcat KQWorld::VolumeSave $KQWorld::SaveGameName
- setcat KQWorld::VolumeSavedWorld $KQWorld::SaveGameName / $KQWorld::Name
-
- KQGame::popGameKqVolume
- loadVolume KQWorld::VolumeSound $KQWorld::VolumeSound
- loadVolume KQWorld::VolumeKq $KQWorld::VolumeKq
- loadVolume KQWorld::VolumeBMP $KQWorld::VolumeBMP
- loadVolume KQWorld::VolumeText $KQWorld::VolumeText
- loadVolume KQWorld::VolumeArt $KQWorld::VolumeArt
- loadVolume KQWorld::VolumeGui $KQWorld::VolumeGui
- loadVolume KQWorld::VolumePatch $KQWorld::VolumePatch
- loadVolume KQWorld::VolumeSave $KQWorld::VolumeSave
- loadVolume KQWorld::VolumeSavedWorld $KQWorld::VolumeSavedWorld
- KQGame::pushGameKqVolume
-
- KQGame::moveVolToFront cur
-
- # reset the NoName counter
- loadKQ gameState.kq
-
- # create the world
- world.cs $KQWorld::Name Init
-
- # load the objects
- world.cs $KQWorld::Name Load
-
- # done with the save game volume, so delete it
- deleteObject KQWorld::VolumeSave
- deleteObject KQWorld::VolumeSavedWorld
-
- # remove the variable
- set KQWorld::VolumeSave
-
- # Show the Game screen (moved to world.cs [10-13 abc])
- #KQGame::selectScreen 1
- loadPalettes 0
-
- purgeResource 4black.pbm
- purgeResource 4red.pbm
- purgeResource 4green.pbm
- purgeResource 4blue.pbm
- purgeResource Loading.pbm
- purgeResource loading.ppl
-
- lockResource 4black.pbm
- lockResource 4red.pbm
- lockResource 4green.pbm
- lockResource 4blue.pbm
- lockResource stontran.pbm
-
- else if test $2 == UnloadWorld
-
- # KQWorld is deleted for us
-
- lockResource 4green.pbm 0
- lockResource stontran.pbm 0
-
- purgeResources
-
- deleteObject KQWorld::VolumePatch
- deleteObject KQWorld::VolumeSound
- deleteObject KQWorld::VolumeKq
- deleteObject KQWorld::VolumeBMP
- deleteObject KQWorld::VolumeText
- deleteObject KQWorld::VolumeArt
- deleteObject KQWorld::VolumeGui
-
- # remove the variables
- set KQWorld::VolumePatch ""
- set KQWorld::VolumeKq ""
- set KQWorld::VolumeBMP ""
- set KQWorld::VolumeText ""
- set KQWorld::VolumeArt ""
- set KQWorld::VolumeSound ""
- set KQWorld::VolumeGui ""
-
- endif
- endif
- endif
- endif
-